<html>
<head>
<meta charset="utf-8"/>
<title>heishenhua</title>
<%@ page pageEncoding="utf-8" %>
</head>
<body>
<h1>This  is the factorial of <%=request.getParameter("number")%>!</h1>

<%
	String ns = request.getParameter("number");
	int n = Integer.parseInt(ns);
	int fact = 1;
	for(int i = 1; i <= n; i++)
		fact *=i;
%>


<h1>阶乘的值是：<%=fact%></h1>
</body>
</html>